import request from '@/utils/request'

// 创建用户经验等级记录
export function createExperienceLevelsRecord(data) {
  return request({
    url: '/system/experience-levels-record/create',
    method: 'post',
    data: data
  })
}

// 更新用户经验等级记录
export function updateExperienceLevelsRecord(data) {
  return request({
    url: '/system/experience-levels-record/update',
    method: 'put',
    data: data
  })
}

// 删除用户经验等级记录
export function deleteExperienceLevelsRecord(id) {
  return request({
    url: '/system/experience-levels-record/delete?id=' + id,
    method: 'delete'
  })
}

// 获得用户经验等级记录
export function getExperienceLevelsRecord(id) {
  return request({
    url: '/system/experience-levels-record/get?id=' + id,
    method: 'get'
  })
}

// 获得用户经验等级记录分页
export function getExperienceLevelsRecordPage(params) {
  return request({
    url: '/system/experience-levels-record/page',
    method: 'get',
    params
  })
}
// 导出用户经验等级记录 Excel
export function exportExperienceLevelsRecordExcel(params) {
  return request({
    url: '/system/experience-levels-record/export-excel',
    method: 'get',
    params,
    // responseType: 'blob'
  })
}